﻿@{
    ViewBag.Title = "视频观看";
}
<div id="dplayer"></div>
@section Scripts{
    <script type="text/javascript">
        layui.use(['DPlayer'], function () {
            var $ = layui.$, DPlayer = layui.DPlayer;
            var dp = new DPlayer({
                container: document.getElementById('dplayer'),
                autoplay: false,
                theme: '#FADFA3',
                loop: true,
                screenshot: false,
                hotkey: true,
                video: {
                    url: '@ViewBag.video_src'
                }
            });
        });
    </script>
}
